package com.example.anliku.entity.ExampleSeeBody;

import com.example.anliku.entity.teamBody.TeamMemberBody;
import com.example.anliku.entity.teamBody.TeamMemberReturnBody;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExampleSeeBody implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 案例和可查看人userId对应关系id
     */
    @ApiModelProperty(value="案例和可查看人userId对应关系id")
    private Integer exampleSeeId;

    /**
     * 案例可查看人id
     */
    @ApiModelProperty(value="案例可查看人id")
    private String exampleSeeUserId;

    /**
     * 案例可查看案例id
     */
    @ApiModelProperty(value="案例可查看案例id")
    private Integer exampleSeeExampleId;

    public static ExampleSeeBody get(ExampleSeeRetBody requestBody) {
        return new ExampleSeeBody(null,requestBody.getExampleSeeUserId(),requestBody.getExampleSeeExampleId());
    }

}
